package com.sweet.mealon.face.daily.lock.concurence.threadLocal;

/**
 * faceDaily
 *
 * @Author: craizer.huang
 * @Date: 2021/5/1 14:49
 **/
public class ThreadLocalDemo  {
    private static ThreadLocal<String> threadLocal = new ThreadLocal<String>();

    public static void main(String[] args) {
        for (int i = 0; i < 10; i++) {
            Thread thread = new Thread(new ThreadLocalThread(threadLocal, i),String.valueOf(i));
            thread.start();

        }
    }
}
